package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    void save(T t);
    void update(T t);
    void remove(Long id);
    T getById(Long id);
    List<T> getAll();

    //分页 高级查询
    //查询总条数
    Long queryCount(BaseQuery query);//多态  编译时   运行时
    //分页的数据
    List<T> queryPage(BaseQuery query);
}
